<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="favicon.ico" >
    <link rel="Shortcut Icon" href="favicon.ico" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="__PUBLIC__/Admin/lib/html5.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Admin/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/static/h-ui.admin/css/style.css" />
    <script src="__PUBLIC__/utf8-php/ueditor.config.js">/*引入配置文件*/</script>
    <script src="__PUBLIC__/utf8-php/ueditor.all.js">/*引入源码文件*/</script>

    <title>合同编辑</title>
</head>
<body>
<include file="header"/>
<include file="aside"/>
<article class="page-container">
    <form class="form form-horizontal" id="form-article-add"  action="" method="post">


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">合同标题：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  id="name" class="input-text" value="{$data.name}" placeholder="房屋租凭合同" name="name">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>选择印章：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box">



                <select name="seal" class="select">

                    <volist name="sealList" id="vo">
                        <eq name="vo.id" value="$data.sealId">
                          <option value="{$vo.id}"  selected="selected">{$vo.name}</option>
                        <else />
                         <option value="{$vo.id}">{$vo.name}</option>
                       </eq>

                    </volist>

				</select>
				</span>
            </div>
        </div>



        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">合同内容：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea name="content" id="content" rows="10" cols="70" style="border:1px solid #E5E5E5;">{$data.content}</textarea>
            </div>
        </div>


        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <!--<button onclick="" class="btn btn-secondary radius" type="submit"><i class="Hui-iconfont"></i> 预览</button>-->
                <!--<button onclick="save()" name="submit"  class="btn btn-secondary radius" type="submit"><i class="Hui-iconfont"></i> 保存</button>-->
                <!--<input name="submit" onclick="return save()"  type="submit" class="btn btn-success radius size-L" value="&nbsp;保&nbsp;&nbsp;&nbsp;&nbsp;存&nbsp;">-->
                <input name="step1" onclick="return setp1()"  type="submit" class="btn btn-success radius size-L" value="&nbsp;下&nbsp;&nbsp;一&nbsp;&nbsp;步&nbsp;">


                <!--<button onclick="" class="btn btn-secondary radius" type="submit"><i class="Hui-iconfont"></i> 发送</button>-->
            </div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__PUBLIC__/Admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__PUBLIC__/Admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/lib/webuploader/0.1.5/webuploader.min.js"></script>

<script src="__PUBLIC__/layui/layui.js"></script>
<script src="__PUBLIC__/layui/layui.all.js"></script>
<script type="text/javascript">
    $(function(){

            UE.getEditor("content");//实例化编辑器  传参,id为将要被替换的容器。



    });





    function setp1() {
        var name=$('#name').val();
        var content=UE.getContent();




        if(name==''){
            layer.msg('标题不能为空', {icon: 5});
            return false;
        }

        // if(content==''){
        //     layer.msg('合同内容不能为空', {icon: 5});
        //     return false;
        // }


        // window.location.href='http://'+window.location.host+'/Admin/Admin/contractAddStep2.html';

    }
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
